package com.five.welcome.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.five.welcome.entity.Dormitoryallocation;
import com.five.welcome.dao.DormitoryallocationMapper;
import com.five.welcome.service.DormitoryallocationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ywt
 * @since 2024-07-12
 */
@Service
public class DormitoryallocationServiceImpl extends ServiceImpl<DormitoryallocationMapper, Dormitoryallocation> implements DormitoryallocationService {

    @Autowired
    private DormitoryallocationMapper dormitoryallocationMapper;
    @Override
    public List<Dormitoryallocation> getAll() {
        QueryWrapper<Dormitoryallocation> queryWrapper=new QueryWrapper<>();
        queryWrapper.select("*");
        return dormitoryallocationMapper.selectList(queryWrapper);
    }
}
